import requests
from config import RunConfig

def 质量检测-工点(para):
    response = requests.get(
        url=RunConfig.url + "quality/inspect/engineer?exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 分页查询质量检查(para):
    response = requests.post(
        url=RunConfig.url + "/quality/check/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 质量检测-联系单(para):
    response = requests.post(
        url=RunConfig.url + "/quality/inspect/contact/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 质量检测-旁站下载(para):
    response = requests.get(
        url=RunConfig.url + "quality/inspect/station/export?id=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 抽检查询班报记录详情列表(para):
    response = requests.get(
        url=RunConfig.url + "class/report/check/page/{id}?page=1&perPage=10",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 质量检测-旁站(para):
    response = requests.post(
        url=RunConfig.url + "/quality/inspect/station/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 质量检测-施工主体(para):
    response = requests.get(
        url=RunConfig.url + "quality/inspect/exploit?projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 质量检测-联系单详情(para):
    response = requests.get(
        url=RunConfig.url + "quality/inspect/contact/detail?id=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 质量检测-联系单下载(para):
    response = requests.get(
        url=RunConfig.url + "quality/inspect/contact/export?id=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 质量检测-旁站详情(para):
    response = requests.get(
        url=RunConfig.url + "quality/inspect/station/detail?id=",
        headers=RunConfig.headers,
        verify=False
    )
    return response
